package com.woniuxy.dao;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @BelongsProject: java-85-course-code
 * @BelongsPackage: com.woniuxy.dao
 * @Author: LiTongMiao
 * @Date: 2022/1/21 11:37
 * @Description: TODO
 */
public interface UserDao {
    @Select("select * from sm")
    List<Map<String,String>> findAll();
    @Insert("insert into sm(account) values(#{account})")
    void insert(Map<String,String> user);
    @Update("update sm set account=#{account} where id=#{id}")
    void updateOne(Map<Object,Object> objectObjectMap);
}
